package com.xb.cloud.product.service.business.dao;

import com.xb.cloud.product.merchant.service.client.bo.ProductMongoBo;
import com.xb.cloud.product.merchant.service.client.bo.ProductShopSeriesMongoBo;

/**
 * mongo商品保存和查找
 * 
 * @author kexue
 */
public interface ProductMongoDao {
	/**
	 * 插入或更新
	 * 
	 * @param pmongo
	 * @return
	 */
	boolean save(ProductMongoBo pmongo);

	/**
	 * 根据id查找
	 * 
	 * @param id
	 * @return
	 */
	ProductMongoBo findById(Long id);

	public boolean saveProductShopSeriesMongoBo(ProductShopSeriesMongoBo productShopSeriesMongoBo);

	public ProductShopSeriesMongoBo findProductShopSeriesMongoBoById(String id);
}
